//
//  AreaPickerViewController.h
//  fengshui
//
//  Created by huliang on 13-4-6.
//
//

#import <UIKit/UIKit.h>


@class AreaPickerViewController;
@class FMDatabase;

@protocol AreaPickerDelegate <NSObject>

@optional


- (void)pickerDidChaneStatus:(AreaPickerViewController *)picker withlocationInformation:(NSDictionary *)locationDic;


@end

@interface AreaPickerViewController : UIViewController <UIPickerViewDelegate, UIPickerViewDataSource>{

    
}

@property(nonatomic,retain)NSArray *provinces, *cities, *areas;
@property(nonatomic,retain)FMDatabase  *dbManager;
@property(nonatomic,retain)NSString *areaDBPath;

@property(nonatomic,retain)UITextField *theResultTextField;//返回结果的文本框

@property (assign, nonatomic) id <AreaPickerDelegate> delegate;
@property (strong, nonatomic) IBOutlet UIPickerView *locatePicker;


- (void)initWithStyle:(id <AreaPickerDelegate>)delegate;
-(IBAction)cancelPopUpView:(id)sender;
- (void)cancelPicker;



@end



